﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="RoleAdmin.aspx.cs" Inherits="DataLib.Accounts.RoleAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="/Css/tab2.css" rel="Stylesheet" type="text/css" />
    <style type="text/css">
        td
        {
            height: 25px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<div class="tab2">
	<h1>角 色 管 理</h1>
    <!--一个表单-->
    <div class="one">
        <asp:label id="Label1" runat="server">新增角色名：</asp:label><asp:textbox id="TextBox1"                     runat="server" MaxLength="30" Columns="20" BorderStyle="Groove"></asp:textbox>&nbsp;&nbsp;
		<asp:Button id="BtnAdd" Text="新增" runat="server" onclick="BtnAdd_Click"></asp:Button>&nbsp;
		<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" 
        ControlToValidate="TextBox1" Display="Dynamic" ErrorMessage="请指定角色名称">
        </asp:requiredfieldvalidator>
    </div>
</div>


<div align="center">
				<table id="Table1" cellSpacing="0" cellPadding="0" width="90%" align="center" border="0">
					<tr>
						<td vAlign="top" >
							<table cellSpacing="0" cellPadding="2" width="100%" align="center" border="0">
								<tr>
									<td>
										<table cellSpacing="0"  cellPadding="5" width="100%" border="0">
											<tr>
												<td><STRONG>点击角色进行权限编辑：</STRONG></td>
											</tr>
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" border="0" width="100%">
														<tr>
															<td width="20"></td>
															<td>
																<asp:DataList id="RoleList" runat="server" RepeatColumns="3" CellPadding="1" Width="100%">
																	<ItemTemplate>
																		【<a href='EditRole.aspx?RoleID=<%# DataBinder.Eval(Container.DataItem, "RoleID") %>'><%# DataBinder.Eval(Container.DataItem, "Description") %></a>】<br />
																	</ItemTemplate>
																</asp:DataList>
															</td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
</asp:Content>
